QT       += core gui opengl

TARGET = Curvature2
TEMPLATE = app

INCLUDEPATH += src parser

win32 {
    LIBS += -lfreeglut -lopengl32
}
unix {
#    LIBS += -lGLU -lglut -lfl
    LIBS += -L/opt/local/lib/ -lfl
}

SOURCES += src/main.cpp\
    src/mainwindow.cpp\
    src/GLDisplay.cpp \
    src/rendercontroller.cpp \
    src/Object3D.cpp \
    src/Arcball.cpp \
    src/DirectionalLight.cpp \
    src/Scene3D.cpp \
    src/plano.cpp \
    src/expressiontree.cpp

HEADERS  +=  src/mainwindow.h\
    src/GLDisplay.h \
    src/rendercontroller.h \
    src/Object3D.h \
    src/Arcball.h \
    src/DirectionalLight.h \
    src/Scene3D.h \
    src/plano.h \
    src/expressiontree.h \
    src/OperatorEnum.h \
    parser/expression.h

FORMS    += src/mainwindow.ui

RESOURCES += \
    Shaders.qrc

OTHER_FILES += shaders/auto.vert \
               shaders/auto.frag \
               parser/expression.l \
               parser/expression.y

#you must run the script "script" before compile project
OBJECTS += parser/expression.o
